/* 宠物信息管理页面样式 */

.pets-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 20px 0;
}

.pets-header h1 {
    font-size: 32px;
    color: #d4a200;
    font-family: 'Comic Sans MS', 'Microsoft YaHei', cursive, sans-serif;
}

.pets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

/* 宠物卡片样式 */
.pet-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.2);
}

.pet-avatar {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
}

.pet-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pet-card:hover .pet-avatar img {
    transform: scale(1.05);
}

.pet-type {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

.pet-type.dog {
    background-color: #4CAF50;
}

.pet-type.cat {
    background-color: #2196F3;
}

.pet-type.other {
    background-color: #9C27B0;
}

.pet-info {
    padding: 10px 0;
}

.pet-info h3 {
    font-size: 24px;
    color: #d4a200;
    margin-bottom: 10px;
    font-family: 'Comic Sans MS', 'Microsoft YaHei', cursive, sans-serif;
}

.pet-info p {
    color: #666;
    margin: 8px 0;
    font-size: 16px;
}

.pet-info p i {
    width: 20px;
    color: #d4a200;
    margin-right: 8px;
}

.pet-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.pet-actions button {
    flex: 1;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalShow 0.3s ease;
}

@keyframes modalShow {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    color: #d4a200;
    font-size: 24px;
    font-family: 'Comic Sans MS', 'Microsoft YaHei', cursive, sans-serif;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    padding: 0 8px;
}

.close-btn:hover {
    color: #d4a200;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ffd700;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4a200;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    margin-right: 8px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pets-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .pets-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 20px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
    }
} 